/**
 * 
 */
package org.softTank.BC.ws.client;

import java.net.MalformedURLException;
import java.net.URL;

import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;

/**
 * @author Yuzone
 *
 */
@WebServiceClient(name = "gisService", wsdlLocation = "http://58.211.230.93:8100/jetexpress-pa/service/gisService?wsdl", targetNamespace = "http://serviceWS.dcec.com")
public class GisService extends Service {

	public final static URL WSDL_LOCATION;
	public final static QName SERVICE = new QName("http://serviceWS.dcec.com",
			"gisService");
	public final static QName GisServiceHttpPort = new QName(
			"http://serviceWS.dcec.com", "gisServiceHttpPort");
	static {
		URL url = null;
		try {
			url = new URL(
					"http://58.211.230.93:8100/jetexpress-pa/service/gisService?wsdl");
		} catch (MalformedURLException e) {
			System.err
					.println("Can not initialize the default wsdl from http://58.211.230.93:8100/jetexpress-pa/service/gisService?wsdl");
			// e.printStackTrace();
		}
		WSDL_LOCATION = url;
	}

	public GisService(URL wsdlLocation) {
		super(wsdlLocation, SERVICE);
	}

	public GisService(URL wsdlLocation, QName serviceName) {
		super(wsdlLocation, serviceName);
	}

	public GisService() {
		super(WSDL_LOCATION, SERVICE);
	}

	/**
	 * 
	 * @return returns GisServicePortType
	 */
	@WebEndpoint(name = "gisServiceHttpPort")
    public GisServicePortType getGisServiceHttpPort() {
		return super.getPort(GisServiceHttpPort, GisServicePortType.class);
    }
}
